package com.ch03.d;

public class Test1 {
	public static void reverse(String[] c) {
		String[] another = new String[c.length];
		for (int i=0, j=c.length-1; i<c.length; i++, j--) {
			another[i] = c[j];
		}
		c = another;  //Line A
	}
	
	public static void print(String[] s) {
		String s2 = "";
		for (int i=0; i<s.length; i++) {
		  s2 += s[i];	
		}
		System.out.println(s2);
	}
	public static void main(String args[]) {
		String value[] = {"C++", " is ", "good"};
		reverse(value);
		print(value);
	}
}
